package com.doubao.doubao_admin.common;

/**
 * 错误代码
 */
public enum ResultStatusCode {
    OK("0", "OK"),
    BAD_REQUEST("400", "参数解析失败"),
    INVALID_TOKEN("401", "无效的授权码"),
    INVALID_CLIENTID("402", "无效的密钥"),
    METHOD_NOT_ALLOWED("405", "不支持当前请求方法"),
    SYSTEM_ERR("500", "服务器运行异常"),
    NOT_EXIST_USER_OR_ERROR_PWD("10000", "该用户不存在或密码错误");


    private String code;
    private String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    private ResultStatusCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "ResultStatusCode{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }
}
